package com.example.demo.service.impl;

import com.example.demo.dao.StudentDAO;
import com.example.demo.model.Student;
import com.example.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDAO studentDAO;
    @Override
    public void add(Student student) {
        studentDAO.add(student);
    }
}
